<?php
class Mwc_SystemPoint_Block_Setting_New_Form extends Mage_Adminhtml_Block_Widget_Form{
    protected function _prepareForm(){
        $form = new Varien_Data_Form();

        $fieldset = $form->addFieldset('new_setting', array('legend' => Mage::helper('systempoint')->__('Setting Details')));
        $fieldset->addField('register_point', 'text', array(
            'name'      => 'register_point',
            'title'     => Mage::helper('systempoint')->__('Registered point'),
            'label'     => Mage::helper('systempoint')->__('Registered point'),
            'required'  => true,
        ));
        $fieldset->addField('register_text', 'text', array(
            'name'      => 'register_text',
            'title'     => Mage::helper('systempoint')->__('Registered text'),
            'label'     => Mage::helper('systempoint')->__('Registered text'),
            'required'  => true,
        ));
        $fieldset->addField('share_point', 'text', array(
            'name'      => 'share_point',
            'title'     => Mage::helper('systempoint')->__('Facebook share point'),
            'label'     => Mage::helper('systempoint')->__('Facebook share point'),
            'required'  => true,
        ));
        $fieldset->addField('share_text', 'text', array(
            'name'      => 'share_text',
            'title'     => Mage::helper('systempoint')->__('Facebook share text'),
            'label'     => Mage::helper('systempoint')->__('Facebook share text'),
            'required'  => true,
        ));
        $fieldset->addField('default_group', 'text', array(
            'name'      => 'default_group',
            'title'     => Mage::helper('systempoint')->__('User point default group name'),
            'label'     => Mage::helper('systempoint')->__('User point default group name'),
            'required'  => true,
        ));

        $form->setMethod('post');
        $form->setUseContainer(true);
        $form->setId('edit_form');
        $form->setAction($this->getUrl('*/*/save'));

        $this->setForm($form);
    }
}